package cn.zhentao.charge.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户对象 charge_user
 * 
 * @author ruoyi
 * @date 2025-05-19
 */
public class ChargeUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 账号 */
    @Excel(name = "账号")
    private String uname;

    /** 昵称 */
    @Excel(name = "昵称")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 盐 */
    @Excel(name = "盐")
    private String salt;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 认证状态 */
    @Excel(name = "认证状态")
    private Integer authentication;

    /** 是否vip */
    @Excel(name = "是否vip")
    private Integer vip;

    /** 用户微信openid */
    @Excel(name = "用户微信openid")
    private String openId;

    /** 可用余额 */
    @Excel(name = "可用余额")
    private BigDecimal balance;

    /** 积分 */
    @Excel(name = "积分")
    private Integer point;

    /** 邀请编码 */
    @Excel(name = "邀请编码")
    private String inviteCode;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private Integer type;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private Integer status;

    /** 会话密钥 */
    @Excel(name = "会话密钥")
    private String sessionKey;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setAuthentication(Integer authentication) 
    {
        this.authentication = authentication;
    }

    public Integer getAuthentication() 
    {
        return authentication;
    }

    public void setVip(Integer vip) 
    {
        this.vip = vip;
    }

    public Integer getVip() 
    {
        return vip;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    public void setPoint(Integer point) 
    {
        this.point = point;
    }

    public Integer getPoint() 
    {
        return point;
    }

    public void setInviteCode(String inviteCode) 
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode() 
    {
        return inviteCode;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uname", getUname())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("salt", getSalt())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("authentication", getAuthentication())
            .append("vip", getVip())
            .append("openId", getOpenId())
            .append("balance", getBalance())
            .append("point", getPoint())
            .append("inviteCode", getInviteCode())
            .append("type", getType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("sessionKey", getSessionKey())
            .toString();
    }
}
